﻿using System;
using System.Collections.Generic;
using IrrlichtLime;
using IrrlichtLime.Core;
using Timed;
using IrrlichtLime.Scene;
using IrrlichtLime.Video;

namespace Iso
{
    public class MousePointer
    {
        public AnimatedSprite2D sprite;
        public int width, height;

        public MousePointer(string spriteName, int width, int height)
        {
            sprite = new AnimatedSprite2D(spriteName, new Recti(0, 0, 1, 1));
            this.width = width;
            this.height = height;
        }

        public void Draw()
        {
            Vector2Di pos = Engine.device.CursorControl.Position;
            sprite.rect = new Recti(pos.X, pos.Y, pos.X + width, pos.Y + height);
            sprite.Draw();
        }

        public void Delete()
        {
            sprite.Remove();
        }
    }
}
